package com.micromall.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * ${table.comment}
 * </p>
 *
 * @author Dante Fung
 * @since 2017-07-28
 */
@TableName("AL_REGION")
public class AlRegion extends Model<AlRegion> {

    private static final long serialVersionUID = 1L;

	@TableField("COMPANY_CODE")
	private String companyCode;
	@TableField("REGION_NAME")
	private String regionName;
	@TableField("ZIP_CODE")
	private String zipCode;
	@TableField("REGION_CODE")
	private String regionCode;
	@TableField("EC_WAREHOUSE_NO")
	private String ecWarehouseNo;
	@TableId("REGION_ID")
	private String regionId;
	@TableField("PARENT_REGION_ID")
	private String parentRegionId;
	@TableField("TREE_INDEX")
	private String treeIndex;
	@TableField("REGION_LEVEL")
	private String regionLevel;


	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getRegionName() {
		return regionName;
	}

	public void setRegionName(String regionName) {
		this.regionName = regionName;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getRegionCode() {
		return regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}

	public String getEcWarehouseNo() {
		return ecWarehouseNo;
	}

	public void setEcWarehouseNo(String ecWarehouseNo) {
		this.ecWarehouseNo = ecWarehouseNo;
	}

	public String getRegionId() {
		return regionId;
	}

	public void setRegionId(String regionId) {
		this.regionId = regionId;
	}

	public String getParentRegionId() {
		return parentRegionId;
	}

	public void setParentRegionId(String parentRegionId) {
		this.parentRegionId = parentRegionId;
	}

	public String getTreeIndex() {
		return treeIndex;
	}

	public void setTreeIndex(String treeIndex) {
		this.treeIndex = treeIndex;
	}

	public String getRegionLevel() {
		return regionLevel;
	}

	public void setRegionLevel(String regionLevel) {
		this.regionLevel = regionLevel;
	}

	@Override
	protected Serializable pkVal() {
		return this.regionId;
	}

	@Override
	public String toString() {
		return "AlRegion{" +
				"companyCode='" + companyCode + '\'' +
				", regionName='" + regionName + '\'' +
				", zipCode='" + zipCode + '\'' +
				", regionCode='" + regionCode + '\'' +
				", ecWarehouseNo='" + ecWarehouseNo + '\'' +
				", regionId='" + regionId + '\'' +
				", parentRegionId='" + parentRegionId + '\'' +
				", treeIndex='" + treeIndex + '\'' +
				", regionLevel='" + regionLevel + '\'' +
				'}';
	}
}
